Liteseed Installation Guide
Domainβ
Before starting, you must have a domain. Get yourself a domain from a service provider. You can find a domain for $1 per year.
Creating a Subdomainβ
Go to your service provider's panel and enter the advanced DNS settings or IP Based DNS settings section. Create 2 A records here.
-
*For the first
A
record, writelite
orlitesedd
in therecord name
section and theIP address
of your server in thevalue
section and save. -
When the time comes, we will take action here again, this time we will create a
TXT
record.
Updating the Systemβ
apt update && apt upgrade -y
Installing Dockerβ
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
docker version
Installing Nnginx and Certbotβ
apt install certbot nginx -y
Cloning the Repoβ
git clone https://github.com/liteseed/edge
Creating Docker Imageβ
cd ./edge
docker build -t edge .
Creating Volumeβ
docker volume create liteseed
Generating Arweave Private Key and Migrate the SQLite Databaseβ
docker run -v liteseed:/data edge generate
docker run -v liteseed:/data edge migrate
Starting the Nodeβ
Write the port number you want to use on your server to the variable.
export EXTERNAL_PORT=8080
And then run the node. docker run -d -p $EXTERNAL_PORT:8080 -v liteseed:/data edge start
docker run -d -p $EXTERNAL_PORT:8080 -v liteseed:/data edge start
- And then close the logs with CTRL C. If you run it on a screen without closing it, these logs will take up space on your disk over time.
Learning Wallet Addressβ
docker run -v liteseed:/data edge balance
- The output would look something this below
Address: F7fmxSBJx5RlIRrt825iIEAL110cKP2Bf8tYd0Q1STU
Balance: 1000 LSD
Staked: No
Domain SSL and TXT Recordβ
Create SSL (HTTPS) Certificates for Your Domain:β
After editing your email address and domain in the code below, run the code.
certbot certonly --manual --preferred-challenges dns --email EMAIL_ADDRESS -d liteseed.domain.com
- After entering the code, you will pass the places where you need to write
yes
to accept it.
Be careful in this part. It will give you two codes for the TXT
record, one is Record name
and the other is value
. You will add them to your service provider.
Please pay attention to the following when recording TXT
. If your domain name is liteseed.domain.com
, your registration name will be: _acme-challenge.liteseed
You will use the code given in the output
as the value.
Before moving on to the next step, go to a DNS Checker and search for _acme-challenge.liteseed.domain.com
to see if the record is propagated. Propagation may take a while. Press Enter
when the propagation starts.
Finally, you will receive a printout showing you the directory of your certificate files.
Preparing Nginx .conf Filesβ
We create a new .conf file.
nano /etc/nginx/conf.d/liteseed.node.conf
Then, we edit the codes below and save them to this file and exit. To exit, we say CTRL X
then Enter
.
- Edit the fields that say
liteseed.domain.com
and8080
according to your own domain name.
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name ar.domain.com;
ssl_certificate /etc/letsencrypt/live/liteseed.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/liteseed.domain.com/privkey.pem;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
}
}
server {
listen 80;
listen [::]:80;
server_name liteseed.domain.com;
location / {
return 301 https://$host$request_uri;
}
}
Then we enter the following codes one by one.
unlink /etc/nginx/sites-available/default
ln -s /etc/nginx/sites-available/liteseed.node.conf /etc/nginx/sites-enabled/liteseed.node.conf
nginx -t
If you do not see an error in the output of this code, it will give an output of OK. This shows that there is no problem with nginx settings.
Finally, we restart the nginx service.
service nginx restart
Requesting Tokensβ
First, fill out the form here.
Then send your wallet address
, dicord ID
and website
you set above to hello@liteseed.xyz.
Don't forget to join the Discord server.
Stakingβ
To request a token, write the address (twitter or website) you gave in the e-mail you sent to where it says https://liteseed.domain.com
.
docker run -v liteseed:/data edge stake -u "https://liteseed.domain.com"
Controling Stakeβ
docker run -v liteseed:/data edge balance
- The output would look something this below
Address: F7fmxSBJx5RlIRrt825iIEAL110cKP2Bf8tYd0Q1STU
Balance: 0 LSD
Staked: Yes
Restarting the Nodeβ
Now you can start earning both $AR and $LSD.
docker run -v liteseed:/data edge start
Backing Up the Walletβ
cat /var/lib/docker/volumes/liteseed/_data/signer.json